<?php defined( 'BASEPATH' ) or die( 'Restricted' );

/*
This code is copyright 2009-2010 by TMLA INC.  ALL RIGHTS RESERVED.
Please view license.txt in /tgsf_core/legal/license.txt or
http://tgWebSolutions.com/opensource/tgsf/license.txt
for complete licensing information.
*/

if ( GET()->isEmpty( 'ink' ) )
{
	URL( '' )->redirect();
}

$linksModel = load_model( 'links' );
$link_id = (int)trim( urldecode( GET()->ink ) );
$link = $linksModel->fetchById( $link_id );

if ( $link == false )
{
	URL( '' )->redirect();
}
//------------------------------------------------------------------------
$metaDescription = $link->link_page_title . ' - ProgChat.com - link details';
$windowTitle = $link->link_page_title . ' - ProgChat.com - link details';
$pageTitle =  'Link Details';
//------------------------------------------------------------------------
$linkTagModel = load_model( 'link_tag' );
$row = $link;

//------------------------------------------------------------------------
include view( 'header' );
include view( 'template/top' );
include view( 'link' );
include view( 'footer' );


//include controller( 'home' );